package com.lwm.service;

import com.lwm.domain.DeliveryOrder;
import com.lwm.domain.ResponseResult;
import com.lwm.dto.DeliveryOrderDto;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface DeliveryOrderServiceImpl {
    /**
     * 添加
     *
     * @param deliveryOrder 交货订单
     * @return {@link Integer}
     */
    ResponseResult<Object> save(DeliveryOrder deliveryOrder);

    /**
     * 删除一批
     *
     * @param ids ids
     * @return {@link Integer}
     */
    ResponseResult<Object> removeBatch(List<Long> ids);

    /**
     * 更新通过编码
     *
     * @param deliveryOrder 交货订单
     * @return {@link Integer}
     */
    ResponseResult<Object> updateById(DeliveryOrder deliveryOrder);

    /**
     * 收到分页
     *
     * @param deliveryOrderDto 交货订单dto
     * @return {@link List}<{@link DeliveryOrder}>
     */
    ResponseResult<Object> getPage(DeliveryOrderDto deliveryOrderDto);


    /**
     * 获取全部
     *
     * @return {@link List}<{@link DeliveryOrder}>
     */
    ResponseResult<Object> getAll();

    /**
     * 更具id获取
     *
     * @param id 编码
     * @return {@link DeliveryOrder}
     */
    DeliveryOrder getById(Long id);
}
